<%@ page language="java" import="java.util.*, model.*" pageEncoding="ISO-8859-1"%>
<%@page import="bean.Poll,java.sql.*,connection.DbConnection" %>
<%
	
	ArrayList al = new ArrayList();
	al = PCShowPoll.showPoll();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>   
    <title>Create Q n A</title>
  </head>
  
  <body>
  	<select>
<option value=0>--Please Select--</option>
<%
for(int i=0;i<al.size();i++)
{
%>
<option value=<%=i+1%>><%=al.get(i)%></option>
<%}%>
</select>

    <div class='clearboth'></div>
			<div id="goods">
			 <table border="1" Width="100%" cellpadding="0" cellspacing="0" color="red" >
				<thead>
				<tr id="row1" align="left">
				<th>Id</th>
				<th>Description</th>
				</tr>
				</thead>								
				<tbody>
				
				<%
				ArrayList bl = new ArrayList();
				bl = PCShowQuestion.showQuestion(?,?);
									for (int i = 0; i < bl.size(); i++) {
									
										Question pb = (Question) bl.get(i);
							//	%><tr id=5 >
							
				<td><a href='Question.jsp?id=<%=pb.getId()%>'><%=pb.getId()%></a></td>
				<td><%=pb.getText()%></td>
					
				</tr>
				<%
					}

						
				%>
				<hr />
				 
				</tbody>
			</table> 		
		</div >		
	</body>
</html>